import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'in',
    width: 50,
    ellipsis: true,
    customRender: function ({ index }) {
      return index + 1;
    },
  },
  {
    title: '角色',
    dataIndex: 'code',
    width: 100,
    ellipsis: true,
  },
  {
    title: '描述',
    dataIndex: 'description',
    width: 100,
    ellipsis: true,
  },
];

export const columnsUser: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'in',
    width: 50,
    ellipsis: true,
    customRender: function ({ index }) {
      return index + 1;
    },
  },
  {
    title: '用户',
    dataIndex: 'realName',
    width: 100,
    ellipsis: true,
  },
  {
    title: '部门',
    dataIndex: 'deptNames',
    width: 100,
    ellipsis: true,
  },
];
export const columnsUserGroup: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'in',
    width: 50,
    ellipsis: true,
    customRender: function ({ index }) {
      return index + 1;
    },
  },
  {
    title: '用户组',
    dataIndex: 'code',
    width: 100,
    ellipsis: true,
  },
  {
    title: '描述',
    dataIndex: 'description',
    width: 100,
    ellipsis: true,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [];
